// 存放接口
import request from '@/utils/request.js'

// 封装接口请求方法
export const allChannelListAPI = () => {
  return request({
    url: '/admin/users'
  })
}

// 用户登录接口
export const loginApi = ({ username, password }) => {
  return request({
    url: '/user/login',
    method: 'POST',
    data: {
      username, password
    }
  })
}

// 租房列表
export const houseApi = () => {
  return request({
    url: '/houses'
  })
}
